export enum DrawStatus {
    BEFORE_DRAW = 'beforeDraw',
    DRAWING = 'drawing',
    DRAWED = 'drawed'
}

export enum DrawType {
    RECTANGLE = 'rectangle',
    POLYGON = 'polygon',
    DISCOUNT = 'polyline',
    ARROW = 'arrow',
    // PARTNERLINE = 'partner-line',
    POLYGON_ARROW = 'polygon-arrow',
    RECT_ARROW = 'rectangle-arrow',
}

export const DrawTypeCN: { [key: string]: string } = {
    'rectangle': '矩形',
    'polygon': '多边形',
    'polyline': '折线',
    'rectangle-arrow': '有向矩形',
    'polygon-arrow': '有向多边形',
    'arrow': '箭头',
    'partner-line': '绊线'
}
export const DRAWING_TEXT = '绘制@中...,单击右键结束绘制';
// 箭头svg
export const ARROW_SVG = '<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n	 viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">\n<style type="text/css">\n	.st0{fill:#D80C18;}\n</style>\n<path class="st0" d="M3.5,15c0,0.8,1.1,1.3,1.7,0.7l7-7c0.4-0.4,0.4-1,0-1.4l-7-7C4.6-0.3,3.5,0.2,3.5,1V15z"/>\n</svg>\n'

// 关闭按钮
export const CLOSE_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_8423_22031)">\n<circle cx="8" cy="8" r="8" fill="#D80C18"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8138 11.7963C10.9496 11.932 11.1276 12 11.3056 12L11.3056 12C11.4836 12 11.6616 11.9321 11.7974 11.7962C12.069 11.5246 12.069 11.0842 11.7974 10.8126L8.98422 7.99941L11.7974 5.18621C12.069 4.91458 12.069 4.47417 11.7974 4.20256C11.5258 3.93092 11.0854 3.93092 10.8138 4.20256L8.00057 7.01577L5.18734 4.20255C4.91572 3.93091 4.4753 3.93094 4.2037 4.20255C3.9321 4.47416 3.9321 4.91459 4.2037 5.18619L7.01693 7.99941L4.2037 10.8126C3.9321 11.0843 3.9321 11.5246 4.2037 11.7963C4.33951 11.9321 4.51752 12 4.69551 12C4.87353 12 5.05153 11.9321 5.18735 11.7963L8.00057 8.98306L10.8138 11.7963Z" fill="white"/>\n</g>\n<defs>\n<clipPath id="clip0_8423_22031">\n<rect width="16" height="16" fill="white" transform="matrix(1 0 0 -1 0 16)"/>\n</clipPath>\n</defs>\n</svg>\n';
